﻿using UnityEngine;
using System.Collections;

public class PerkArrow : MonoBehaviour {

	void Start(){
		if (transform.parent.GetComponent<PerkBtn> ().bEmpty) {
			GetComponent<UISprite>().alpha = 0.0f;
		}else{

            //if (transform.parent.GetComponent<PerkBtn>().pPerkData.m_bBeneficial)
            //{
            //    transform.localRotation = Quaternion.AngleAxis(180.0f, Vector3.forward);
            //    GetComponent<UISprite>().color = new Color(0, 200 / 255f, 0);
            //}
            //else
            //{
            //    GetComponent<UISprite>().color = new Color(1, 0, 0);
            //}

		}
		GetComponent<UISprite>().depth = transform.parent.GetComponent<UISprite> ().depth + 1;
	}

	void Update () {

	}	
}
